package com.jzo2o.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.domain.Activity;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface ActivityMapper extends BaseMapper<Activity> {
    /**
     * 增或修改优惠券活动
     */
    int addsave(ActivitySaveReqDTO activitySaveReqDTO);

    int upById(ActivitySaveReqDTO activitySaveReqDTO);

    int updateById(ActivityInfoResDTO activity);


    /**
     * 根据ID查询优惠劵活动详情
     *
     * @param id
     * @return
     */
}
